package org.brudywr.mychat.web;

import org.brudywr.mychat.service.MyChatRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author stas
 * @since 9/3/13
 */
@Controller
public class MyChatRoomController {

    @Autowired
    private MyChatRoomService chatRoomService;


    @RequestMapping("/chat")
    public String home() {
        chatRoomService.addMessage("test", "test3" );
        return null;
    }
}
